package com.feiyu.universal.entity;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author tang ming
 * @since 2021-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 资源id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resourceId;

    /**
     * 资料类型博客或者文件
     */
    private Boolean flag;

    /**
     * 评论组
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long groupId;

    /**
     * 父评论
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 父评论者
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questioner;

    /**
     * 评论者id
     */
    private String replier;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    private Date createTime;

    private Boolean deleted;


}
